#include "system.h"
#include "stm32f10x.h"
#include "systick.h"
#include "led01.h"
#include "stdio.h"
#include "myusart.h"
#include "start_freertos.h"
int main()
{
	
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);  //中断优先级分组分2组
	USART1_Init(115200);
	SysTick_Init();
	//开始启动任务
	
freertos_starts();


}
int fputc(int ch,FILE *p)
{
USART_SendData(USART1,(u8)ch);
	while(USART_GetFlagStatus(USART1,USART_FLAG_TXE)==RESET);
	return ch;
}




